package cloudInformation.mapper;

import cloudEntity.dto.SmartExaminationPerformanceDTO;
import cloudEntity.dto.user.SmartUserExaminationPerformanceUpdateDTO;
import cloudEntity.vo.user.SmartExaminationPerformanceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 智慧校园考试成绩表(SmartExaminationPerformance)表数据库访问层
 *
 * @author makejava
 * @since 2025-04-14 16:41:15
 */
@Mapper
public interface SmartExaminationPerformanceMapper  {

    /**
     * 根据uid获取学生考试成绩列表
     * @param uid uid
     * @return 返回学生考试成绩列表
     */
    List<SmartExaminationPerformanceVO> getUserExaminationScore(@Param("uid") String uid);

    /**
     * 新增学生考试成绩
     * @param smartExaminationPerformanceDTO 前端传入的用户考试成绩DTO 实体
     * @return 返回 1 或 0
     */
    Integer insertUserExaminationScore(SmartExaminationPerformanceDTO smartExaminationPerformanceDTO);

    /**
     * 修改学生考试成绩
     * @param smartUserExaminationPerformanceUpdateDTO 前端传入的用户考试成绩修改DTO 实体
     * @return 返回 1 或 0
     */
    Integer updateUserExaminationScore(SmartUserExaminationPerformanceUpdateDTO smartUserExaminationPerformanceUpdateDTO);
}

